lib/repo-commit: Drop unreachable conditional branch
authorPhilip Withnall <withnall@endlessm.com>
Mon, 7 Aug 2017 13:09:07 +0000 (14:09 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 8 Aug 2017 14:11:07 +0000 (14:11 +0000)
commit4f187b576dc58d725757070148c824916d3c3aa7
tree8ac04b770f64cb457b41745645b3d43653c1bf0e
parentbaa9534fdadbc2103036511a31ac7053ee174f62
lib/repo-commit: Drop unreachable conditional branch

(remaining > 0) is asserted by the loop condition, and remaining is not
modified between that check and the G_UNLIKELY — so the condition in the
G_UNLIKELY will always be true.

Spotted by Coverity as issue #1452617.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1059
Approved by: cgwalters
src/libostree/ostree-repo-commit.c